class Person {

    static searchable = true

    String name
    String street
    String postalCode

    String handPhone
    String homePhone

    Date dob

    String remark

    static constraints = {
        street(nullable:true)
        postalCode(nullable:true)
        handPhone(blank:false)
        name(blank:false)
        homePhone(nullable:true)
        dob(nullable:true)
        remark(nullable:true)
    }

    static mapping = {
        cache true
    }
}


